List Literal Patterns#1363
Conversation
There was a problem hiding this comment.
This doesn't (yet?) do the .. part of the issue #821, so we can't match on tails :(
and I'd like to see a few more pos tests like if ([None(), Some(42) is [head, Some(x)]) { ... } and with val [x, y] = foo { ... } and foo { case [x, y, z, a] => ... } :)
I made it so that after a tail pattern,
There is already a
Whole list, why not
Write
Not after a splat. (Could change this, but I think there is no argument for it, as splat is always last) |
|
What do you mean with |
Ah, sorry, you can do effekt/examples/pos/with_val_and_else.effekt Lines 20 to 26 in 1bae57f |
|
I also rewrote manyTrailing. Should be enough pos tests for now 🙏 |
Starting to implement #821